﻿<UserControl x:Class="Skynet.C2SModule.Views.BookWritter.BookWritterView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:controls="clr-namespace:Infrastructure.WpfClient.Controls;assembly=Infrastructure.WpfClient"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300" Loaded="UserControl_Loaded" MinHeight="300">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="*"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Orientation="Horizontal">
            <TextBlock Style="{StaticResource TextBlockStyle}">Books </TextBlock>
            <ComboBox 
                 Name="cbBooks"
                      Style="{StaticResource ComboBoxStyle}" 
                      ItemsSource="{Binding Books}"  
                      ItemTemplate="{StaticResource ComboBookTemplate}" 
                      IsSynchronizedWithCurrentItem="True"></ComboBox>
        </StackPanel>
        <controls:TextEditor Name="txtEditor" Grid.Row="1" Document="{Binding  ElementName=cbBooks, Path=SelectedItem.Content, Mode=TwoWay}" SpellCheckIsEnabled="True" >
            
        </controls:TextEditor>       
        <Button Style="{StaticResource ButtonStyle}" Grid.Row="2" Name="btnPrint" Content="Print" Click="btnPrint_Click">
            
        </Button>
    </Grid>
</UserControl>
